import request from '@/utils/request'

// 查询设备传感器管理列表
export function listDevice_sensor(query) {
  return request({
    url: '/oil/device_sensor/list',
    method: 'get',
    params: query
  })
}

// 查询设备传感器管理详细
export function getDevice_sensor(id) {
  return request({
    url: '/oil/device_sensor/' + id,
    method: 'get'
  })
}

// 新增设备传感器管理
export function addDevice_sensor(data) {
  return request({
    url: '/oil/device_sensor',
    method: 'post',
    data: data
  })
}

// 修改设备传感器管理
export function updateDevice_sensor(data) {
  return request({
    url: '/oil/device_sensor',
    method: 'put',
    data: data
  })
}

// 批量修改设备传感器管理
export function updateDevice_sensorList(data) {
  return request({
    url: '/oil/device_sensor/editList',
    method: 'put',
    data: data
  })
}


// 删除设备传感器管理
export function delDevice_sensor(id) {
  return request({
    url: '/oil/device_sensor/' + id,
    method: 'delete'
  })
}
